package homework3;

import java.util.Scanner;

public class P5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            if (n % 2 == 0) {
                //先打印上半部分
                for (int i = 1; i <= n / 2; i++) {
                    //打印每一行开始的空格
                    for (int t = 0; t < i - 1; t++)
                        System.out.print(" ");
                    //打印正斜线的
                    System.out.print("*");
                    //打印两斜线中间的空格
                    for (int t = n - 2 * i; t > 0; t--)
                        System.out.print(" ");
                    //打印反斜线
                    System.out.println("*");
                }
                //打印下半部分
                for (int i = n / 2; i >= 1; i--) {
                    for (int t = i - 1; t > 0; t--)
                        System.out.print(" ");
                    System.out.print("*");
                    for (int t = 0; t < n - 2 * i; t++)
                        System.out.print(" ");
                    System.out.println("*");
                }

            } else {
                //打印上半部分
                for (int i = 1; i <= n / 2; i++) {
                    //打印每一行开始的空格
                    for (int t = 0; t < i - 1; t++)
                        System.out.print(" ");
                    //打印正斜线
                    System.out.print("*");
                    //打印两斜线中间的空格
                    for (int t = n - 2 * i; t > 0; t--)
                        System.out.print(" ");
                    //打印反斜线
                    System.out.println("*");
                }
                //打印下半部分
                for (int i = n / 2 + 1; i >= 1; i--) {
                    for (int t = i - 1; t > 0; t--)
                        System.out.print(" ");
                    System.out.print("*");
                    if (i == n / 2 + 1) {
                        System.out.println();
                        continue;
                    }
                    for (int t = 0; t < n - 2 * i; t++)
                        System.out.print(" ");
                    System.out.println("*");
                }
            }

        }
    }
}
